<?php ob_start();session_start();?>
<?php
if (isset($_POST['loai']))
{
		include "connection.php";
		$MaNhom = $_POST['MaNhom'];
		$TenLoai = $_POST['TenLoai'];	
		$TenChiTietLoai = $_POST['TenChiTietLoai'];	
		$query="Insert into loaisanpham(MaNhom, TenLoai, TenChiTietLoai)values('".$MaNhom."','".$TenLoai."','".$TenChiTietLoai."')";
		$result=mysql_query($query);
		header("location:../MyModel/TrangAdmin_con.php?themloai");	
		mysql_close($con);
			
	}
?>
